import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import store from "./store";
import router from './router'
import App from './App.vue'
import '@/styles/index.less'
import common from "./utils/common"
import * as components from "@/components"

Vue.use(ElementUI);

Vue.prototype.$common = common;

Object.keys(components).forEach(key => {
  Vue.component(key, components[key])
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
